package com.shixi.shixitraining.shixitraining.ui.tabhome.adapter;

import android.content.Context;
import android.widget.TextView;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabhome.entity.TrainingListDetailBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/9/10.
 */
public class TrainingRouteAdapter extends BaseAdapter<TrainingListDetailBean.DataBean.TrainingBean> {

    private Context context;
    private int firstItem = 0;
    private TextView mRoute;

    public TrainingRouteAdapter(Context context, List<TrainingListDetailBean.DataBean.TrainingBean> data) {
        super(context, data);
        this.context = context;
    }

    @Override
    public void convert(BaseRecycleHolder holder, TrainingListDetailBean.DataBean.TrainingBean item, int position) {
        holder.setText(R.id.tv_five_route, item.getTitle());
        mRoute = holder.getView(R.id.tv_five_route);
    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.item_training_route;
    }


}
